package com.company.project.builder.wx.outxml;

import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutVoiceMessage;

/**
 * @author xsk
 */
public class VoiceBuilder  {

    public WxMpXmlOutMessage build(String mediaId , WxMpXmlMessage wxMessage) {

        WxMpXmlOutVoiceMessage m = WxMpXmlOutMessage.VOICE()
                .mediaId(mediaId)
                .fromUser(wxMessage.getToUser())
                .toUser(wxMessage.getFromUser())
                .build();

        return m;
    }

}
